package models

import "time"

type VisualMaterial struct {
	Id                int       `gorm:"primarykey"`
	StoryboardId      int       `gorm:"column:storyboard_id;comment:故事板ID;index:storyboard_id"`
	X                 int       `gorm:"column:x;comment:position x"`
	Y                 int       `gorm:"column:y;comment:position y"`
	Width             int       `gorm:"column:width;comment:width"`
	Height            int       `gorm:"column:height;comment:height"`
	Layer             int       `gorm:"column:layer;comment:layer"`
	Volume            int       `gorm:"column:volume;comment:volume"`
	OffsetMillisecond int       `gorm:"column:offset_millisecond;comment:offset_millisecond"`
	AssetId           int       `gorm:"column:asset_id;comment:asset_id"`
	OwnId             int       `gorm:"column:own_id;comment:own_id;index:owner_id"`
	CreatedAt         time.Time `gorm:"autoCreateTime"`
	UpdatedAt         time.Time `gorm:"autoUpdateTime"`
}
